#!/usr/bin/env python
# encoding: utf-8
"""
BlogFolder.py

Created by Takashi Nagai on 2009-09-25.
Copyright (c) 2009 CMScom. All rights reserved.
"""

from AccessControl import ClassSecurityInfo
#from ComputedAttribute import ComputedAttribute
from zope import interface

from Products.Archetypes.atapi import *
from Products.CMFCore.utils import getToolByName

from Products.ATContentTypes.content.folder import ATFolder
from Products.ATContentTypes.content.schemata import finalizeATCTSchema
from Products.ATContentTypes.configuration import zconf
# from Products.CMFCore.permissions import View, ModifyPortalContent

from c2.site.icos09 import icos09MessageFactory as _
from c2.site.icos09.content.interfaces import IBlogFolder
from c2.site.icos09.config import *

schema = Schema((

),)

blog_folder_schema = getattr(ATFolder, 'schema', Schema(())).copy() + schema.copy()
finalizeATCTSchema(blog_folder_schema)

class BlogFolder(ATFolder):
    """
    """
    security = ClassSecurityInfo()
    interface.implements(IBlogFolder)
    schema = blog_folder_schema
    
    meta_type = "BlogFolder"
    _at_rename_after_creation = True

registerType(BlogFolder, PROJECTNAME)